home *** CD-ROM | disk | FTP | other *** search
- package javax.swing.text.html;
-
- import javax.swing.text.AttributeSet;
- import javax.swing.text.DefaultStyledDocument;
- import javax.swing.text.MutableAttributeSet;
- import javax.swing.text.html.HTML.Attribute;
- import javax.swing.text.html.HTML.Tag;
-
- class HTMLDocument$HTMLReader$ObjectAction extends HTMLDocument.HTMLReader.SpecialAction {
- // $FF: synthetic field
- private final HTMLDocument.HTMLReader this$1;
-
- HTMLDocument$HTMLReader$ObjectAction(HTMLDocument.HTMLReader var1) {
- super(var1);
- this.this$1 = var1;
- }
-
- void addParameter(AttributeSet var1) {
- String var2 = (String)var1.getAttribute(Attribute.NAME);
- String var3 = (String)var1.getAttribute(Attribute.VALUE);
- if (var2 != null && var3 != null) {
- DefaultStyledDocument.ElementSpec var4 = (DefaultStyledDocument.ElementSpec)this.this$1.parseBuffer.lastElement();
- MutableAttributeSet var5 = (MutableAttributeSet)var4.getAttributes();
- var5.addAttribute(var2, var3);
- }
-
- }
-
- public void end(HTML.Tag var1) {
- if (var1 != Tag.PARAM) {
- super.end(var1);
- }
-
- }
-
- public void start(HTML.Tag var1, MutableAttributeSet var2) {
- if (var1 == Tag.PARAM) {
- this.addParameter(var2);
- } else {
- super.start(var1, var2);
- }
-
- }
- }
-